package cn.itcast.service.impl;


import cn.itcast.dao.UserDao;
import cn.itcast.dao.impl.UserDaoImpl;
import cn.itcast.domain.User;
import cn.itcast.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {
    private UserDao dao = new UserDaoImpl();
    //查询所有用户信息
    public List<User> findAll() {
        return  dao.findAll();
    }

    @Override
    public void add(User user) {
        dao.add(user);
    }
}
